<?php include('../../job/common/pdata_mysql.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<?php
//插入pronews的列表
$pronews = $_POST['pronews'];
$pid = $_POST['pid'];
$ndatetime = date("Y/m/d");

$pdata = mysql_pconnect($hostname_pdata, $username_pdata, $password_pdata);
if (!$pdata)
  {
  die ("Can Open the database : " . mysql_error());
  }
$db_selected =  mysql_select_db("pdata",$pdata);
if (!$db_selected)
  {
  die ("Can\'t use test_db : " . mysql_error());
  }

$sql = "insert  into pronews (pid,news,ndatetime) value (". $pid.",'".$pronews."','".$ndatetime."')";
echo $sql;
if(!mysql_query($sql))
{
	die( mysql_error());
}
?>
</body>
</html>

